<?php
$action	= isset($_REQUEST["act"]) ? $_REQUEST['act'] : "";
$order	= isset($_REQUEST["order"]) ? $_REQUEST['order'] : "";
$userid	= isset($_REQUEST["userid"]) ? $_REQUEST['userid'] : "0";
$page_list  = isset($_REQUEST["inpage"]) && $_REQUEST["inpage"]>0? $_REQUEST['inpage'] : "1";
include( "CAdmin.php" );
global $page_title;
$page_title = "Admin control panel";
switch ( $action ) {
	case 'adduser':
            CAdmin::add_user();
            break;
        case 'viewuser':
            CAdmin::view_user($userid);
            break;
        case 'viewuser':
            CAdmin::view_user($userid);
            break;
        case 'edituser':
            CAdmin::edit_user($userid);
            break;
        case 'deleteuser':
            CAdmin::delete_user($userid);
            break;
        case 'showall':default:
            CAdmin::showall($page_list);
            break;
}
?>



